﻿using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace iPhotoUploader.Library
{
    public static class Utility
    {

        public static string CheckOSPath(string path)
        {
            if (AppDomain.CurrentDomain.BaseDirectory.ToLower().Contains("debug"))
            {
                path = path.ToLower();
                if (path.Contains("/users/"))
                    return path.Replace("/users/", "Z:\\");
                else
                    return path.Replace("/volumes/erika files/", "E:\\");
            }

            return path;

        }

        public static bool CheckVideoExtension(string path)
        {
            if (path.ToLower().Contains(".mov"))
                return true;

            if (path.ToLower().Contains(".avi"))
                return true;

            if (path.ToLower().Contains(".mp4"))
                return true;

            return false;
        }
    }
}
